-- GENERATED SPELL FOR [Mottled Raptor] --


function spell0_1020(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1020', 0, 1)
end

function Sorts_1020(pUnit, Event)
local choix_sorts_1020 = math.random(0, 0)
if choix_sorts_1020 == 0 then
pUnit:RegisterEvent('spell0_1020', 1, 1)
end
end

function mob1020_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1020', math.random(1500, 3000), 1)
end

function mob1020_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1020_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1020_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1020, 1, 'mob1020_Action')
RegisterUnitEvent(1020, 2, 'mob1020_Leave')
RegisterUnitEvent(1020, 3, 'mob1020_Kill')
RegisterUnitEvent(1020, 4, 'mob1020_Die')
